package com.wx.app.mylib.view;

import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

import com.example.administrator.mylib.R;

/**
 * Created by huangsm on 2014/8/25 0025.
 * Email:huangsanm@foxmail.com
 */
public class ProgressDialog extends Dialog {

    private TextView mMsgTextView;

    public ProgressDialog(Context context){
        super(context, R.style.dialog_style);

        setContentView(R.layout.dialog_progress_layout);

        mMsgTextView = (TextView) findViewById(R.id.progress_msg);
    }

    public ProgressDialog(Context context, String msg){
        super(context, R.style.dialog_style);

        setContentView(R.layout.dialog_progress_layout);

        mMsgTextView = (TextView) findViewById(R.id.progress_msg);
        mMsgTextView.setText(msg);
    }

    public ProgressDialog setProgressMsg(String msg){
        mMsgTextView.setText(msg);
        return this;
    }

}
